/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.agile.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import org.netbeans.api.project.Project;
import org.openide.awt.ActionID;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionRegistration;
import org.openide.util.NbBundle.Messages;

@ActionID(
        category = "Build",
        id = "org.agile.action.ActionGenerate")
@ActionRegistration(
        iconBase = "org/agile/action/scenes.gif",
        displayName = "#CTL_ActionGenerate")
@ActionReference(path = "Menu/BuildProject", position = -90)
@Messages("CTL_ActionGenerate=Generator")
public final class ActionGenerate implements ActionListener {

    private final Project context;

    public ActionGenerate(Project context) {
        this.context = context;
    }

    @Override
    public void actionPerformed(ActionEvent ev) {
        JOptionPane.showMessageDialog(null, "Hola, Batman.",
                "JOptionPane/Ejemplo de MessageDialog",
                JOptionPane.INFORMATION_MESSAGE);
    }
}
